import {request} from "@/config/request.js"
// 添加地址

export const addAddrss = (data)=>{
    return request({
        url:'address/address_add',
        method:'post',
        data
    })
}
// 省份列表
export const areaList = (data)=>{
    return request({
        url:'address/area',
        method:'post',
        data
    })
} 
// 省份列表
export const provinceList = (data)=>{
    return request({
        url:'address/province_list',
        method:'post',
        data
    })
}
// 市列表
export const cityList = (data)=>{
    return request({
        url:'address/city_list',
        method:'post',
        data
    })
}
// 修改地址
export const editAddress = (data)=>{
    return request({
        url:'address/address_edit',
        method:'post',
        data
    })
}
// 地址列表
export const  getAddressList = (data)=>{
    return request({
        url:'address/address_list',
        method:'post',
        data
    })
}
// 地址 删除
export const delAddress  = (data)=>{
    return request({
        url:'address/address_del',
        method:'post',
        data
    })
}
// 地址详情
export const detailAddress  = (data)=>{
    return request({
        url:'address/address_detail',
        method:'post',
        data
    })
}